<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>疫情防控检查上报</title>
  <base href="/">

  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
  <meta name="format-detection" content="telephone=yes">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<style>
  html,
  body {
    width: 100%;
    height: 100%;
  }
</style>

<body>
  <app-root></app-root>
<script src="runtime-es2015.js" type="module"></script><script src="polyfills-es2015.js" type="module"></script><script src="runtime-es5.js" nomodule defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="styles-es2015.js" type="module"></script><script src="styles-es5.js" nomodule defer></script><script src="vendor-es2015.js" type="module"></script><script src="main-es2015.js" type="module"></script><script src="vendor-es5.js" nomodule defer></script><script src="main-es5.js" nomodule defer></script></body>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=4ff61ed65d467c95f2de67dee1c5fcd1">
</script>
<script>
  var ua = navigator.userAgent.toLowerCase();
  var scroll = 0;
  var bodyHeight = 0;
  var isFocus = false;
  var isAndroid = ua.indexOf('android') != -1;
  var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
  if (isAndroid) {
    localStorage.phoneType = 'android';
    window.setTimeout(function () {
      bodyHeight = document.body.scrollHeight;
    }, 0);
    window.addEventListener("resize", function () {
      let foot = document.getElementsByClassName('foot');
      if (document.body.scrollHeight < bodyHeight) {
        for (let i = 0; i < foot.length; i++) {
          foot[i].style.display = 'none';
        }
      } else {
        for (let i = 0; i < foot.length; i++) {
          foot[i].style.display = 'block';
        }
      }
      if (document.activeElement.tagName == "INPUT" || document.activeElement.tagName == "TEXTAREA") {
        window.setTimeout(function () {
          document.activeElement.scrollIntoViewIfNeeded();
        }, 0);
      }
    })
  } else if (isIos) {
    localStorage.phoneType = 'ios';
    document.body.addEventListener('focusin', function () {
      scroll = document.documentElement.scrollTop || document.body.scrollTop;
      isFocus = true;
    });
    document.body.addEventListener('focusout', function () {
      isFocus = false;
      setTimeout(function () {
        if (!isFocus) {
          window.scrollTo(0, scroll);
        }
      }, 0)
    });
  }
 
  var map = new AMap.Map('map-container', {
    resizeEnable: true
  })
 
  AMap.plugin('AMap.Geolocation', function () {
    var geolocation = new AMap.Geolocation({
      // 是否使用高精度定位，默认：true
      enableHighAccuracy: true,
      // 设置定位超时时间，默认：无穷大
      timeout: 10000,
      // 定位按钮的停靠位置的偏移量，默认：Pixel(10, 20)
      buttonOffset: new AMap.Pixel(10, 20),
      //  定位成功后调整地图视野范围使定位位置及精度范围视野内可见，默认：false
      zoomToAccuracy: true,
      //  定位按钮的排放位置,  RB表示右下
      buttonPosition: 'RB'
    })
    window.AMapGeolocation=geolocation;
  })
 
</script>

</html>